package com.hjs.pacloudservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;


@SpringBootApplication
//启用服务注册与发现
@EnableDiscoveryClient
//启用feign进行远程调用
@EnableFeignClients
public class PacloudServiceApplication {

	//@Bean 应用在方法上，用来将方法返回值设为为bean
	//@Bean
	//@LoadBalanced  //@LoadBalanced实现负载均衡
	//public RestTemplate restTemplate() {
//		return new RestTemplate();
//	}


	public static void main(String[] args) {
		SpringApplication.run(PacloudServiceApplication.class, args);
	}

}
